package demo;

public class work_42 {
	public static void main(String[] args) {
		int x = 0;
		for(int i=0;i<100;i++){
			if(8*i<100 && 9*i>99){
				x=i;
				break;
			}
		}
		int sum=800*x+9*x+1;
		System.out.println(sum);
		System.out.println(x);
	}
}
